package com.miao.admin.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.miao.admin.dao.AdminOrderDao;
import com.miao.common.entity.pojo.ShopOrder;
import com.miao.admin.service.AdminOrderService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Map;

/**
 * 订单表(ShopOrder)表服务实现类
 *
 * @author MiaoWenQing
 * @since 2021-02-20 23:05:12
 */
@Service
public class AdminOrderServiceImpl extends ServiceImpl<AdminOrderDao, ShopOrder> implements AdminOrderService {


    @Resource
    private AdminOrderDao adminOrderDao;


    /**
     * 关闭订单
     *
     * @param close
     * @return
     */
    @Override
    public int updateClose(Map close) {
       return this.adminOrderDao.updateClose(close);

    }

    /**
     * 订单发货
     *
     * @param deliver
     * @return
     */
    @Override
    public int updateDeliver(Map deliver) {

        return  this.adminOrderDao.updateDeliver(deliver);
    }
}
